package com.poc.service.impl;

import com.poc.domain.Task;
import com.poc.repository.TaskRepository;
import com.poc.service.ProcessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class ProcessServiceImpl implements ProcessService {
    @Autowired
    private TaskRepository taskRepository;

    @Transactional
    @Override
    public Task saveTask(Task task) {
        return taskRepository.save(task);
    }
}
